<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function RowHighlightByCheckBox(row_id, ch_id, normal_class, highlight_class, row) { 
	
	var row = document.getElementById(row_id);
	var ch = document.getElementById(ch_id);
	
	if(row) {
		if(ch.checked == true) { ch.checked = false; }
		else                   { ch.checked = true; }
	}
	
	if(ch.checked == true) { row.className = highlight_class; } 
	else                   { row.className = normal_class; }
}
//-->
</SCRIPT>

{header}

<form action="{action_link}" method="post" name="action_form" id="action_form">
<input type="hidden" name="module" value="knowledgebase">
<input type="hidden" name="page" value="kb_entry">

<table border=0 width="100%" cellpadding="4" cellspacing="0" class="tdBorder">
<tr class="tdTitle">
	<td><input type="checkbox" value=""></td>
	<td nowrap>{date_posted_msg}</td>
	<td class="tdTitle">{entry_title_msg}</td>
	<td>{category_msg}</td>
	
	<td>{hits_num_msg}</td>
	<td>{votes_num_msg}</td>
	<td>{rating_msg}</td>
	<td>{comment_num_msg}</td>
<!-- 	<td>{status_msg}</td>
	<td colspan="2" align="center" width="1">{action_msg}</td> -->
</tr>
<tr><td colspan="20" style="padding: 0px;" bgcolor="#808080"></td></tr>
<tmpl:row>
<tr id="row_{id}" class="{class}" style="{style}" 
									onMouseOver="OverColor(this, 'trOver', 'trHighlight')" 
									onMouseOut="OverColor(this, '{class}', 'trHighlight')"
									onClick="RowHighlightByCheckBox('row_{id}', 'ch_{id}', '{class}', 'trHighlight', true)"
									onDblClick="RecordToDo('{update_link}')">
	
	<td>
	<input type="checkbox" name="ids[]" value="{id}" id="ch_{id}"
		onclick="RowHighlightByCheckBox('row_{id}', 'ch_{id}', '{class}', 'trHighlight', false)">	
	</td>
	<td>{formated_date}</td>
	<td width="30%">{title}</td>
	<td>{category}</td>
	
	
	<td>{hits}</td>
	<td>{votes}</td>
	<td><img src="images/rating/rate_{rating_img}.gif" alt="" border="0"></td>
	<td>{comment_num}</td>	
<!-- 	<td align="center">{active_img}</td>
	<td align="center">{update_img}</td>
	<td align="center">{delete_img}</td> -->
</tr>

<tr><td colspan="20" style="padding: 0px;"></td></tr>
</tmpl:row>

</table>

<input type="submit" name="test">
</form>